Skip to content

Conversation

@klkvr
Copy link
Member

@klkvr klkvr commented Nov 22, 2024

Motivation

Closes #9375

With #8668 we now resolve the Graph when creating project as we need data about all sources for restrictions. This caused forge test to fail in CI if there are any missing dependencies which were being installed only after call to config.project()

This PR changes order of operations so that we always install dependencies first. Also I've added an optimization to skip graph resolution if user did not specify any restrictions

Copy link
Collaborator

@grandizzy grandizzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@yash-atreya yash-atreya merged commit 76a2cb0 into master Nov 22, 2024
21 checks passed
@yash-atreya yash-atreya deleted the klkvr/fix-order branch November 22, 2024 06:53
@klkvr klkvr self-assigned this Nov 25, 2024
rplusq pushed a commit to rplusq/foundry that referenced this pull request Nov 29, 2024
…t` (foundry-rs#9379)

* fix(forge test): install missing dependencies before instantiating the project

* optimization
@grandizzy grandizzy added T-bug Type: bug C-forge Command: forge labels Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-forge Command: forge T-bug Type: bug

Projects

Status: Completed

Development

Successfully merging this pull request may close these issues.

Remappings break CI builds using foundry > e649e62

4 participants